
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>PhpStorm本地断点调试 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="03_php文件操作.html" />
    
    
    <link rel="prev" href="01_php错误与异常.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    前言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../php基础/01_php介绍.html">
            
                <a href="../php基础/01_php介绍.html">
            
                    
                    php基础
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../php基础/01_php介绍.html">
            
                <a href="../php基础/01_php介绍.html">
            
                    
                    php介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../php基础/02_PHP基础语法.html">
            
                <a href="../php基础/02_PHP基础语法.html">
            
                    
                    php基础语法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../php基础/03_php变量.html">
            
                <a href="../php基础/03_php变量.html">
            
                    
                    php变量
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../php基础/04_php数据类型.html">
            
                <a href="../php基础/04_php数据类型.html">
            
                    
                    php数据类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../php基础/05_php常量.html">
            
                <a href="../php基础/05_php常量.html">
            
                    
                    php常量
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="../php基础/06_php运算符.html">
            
                <a href="../php基础/06_php运算符.html">
            
                    
                    php运算符
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="../php基础/07_php流程控制.html">
            
                <a href="../php基础/07_php流程控制.html">
            
                    
                    php流程控制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8" data-path="../php基础/08_php数组.html">
            
                <a href="../php基础/08_php数组.html">
            
                    
                    php数组
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.9" data-path="../php基础/09_php函数.html">
            
                <a href="../php基础/09_php函数.html">
            
                    
                    php函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.10" data-path="../php基础/10_php面向对象.html">
            
                <a href="../php基础/10_php面向对象.html">
            
                    
                    php面向对象
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.11" data-path="../php基础/11_php命名空间.html">
            
                <a href="../php基础/11_php命名空间.html">
            
                    
                    php命名空间
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.12" data-path="../php基础/12_php日期和时间.html">
            
                <a href="../php基础/12_php日期和时间.html">
            
                    
                    php日期时间
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.13" data-path="../php基础/13_php表单.html">
            
                <a href="../php基础/13_php表单.html">
            
                    
                    php表单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.14" data-path="../php基础/14_php包含文件.html">
            
                <a href="../php基础/14_php包含文件.html">
            
                    
                    php包含文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.15" data-path="../php基础/15_php常用函数.html">
            
                <a href="../php基础/15_php常用函数.html">
            
                    
                    php常用函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.16" data-path="16_php常用变量函数.md">
            
                <span>
            
                    
                    php常用变量函数
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="01_php错误与异常.html">
            
                <a href="01_php错误与异常.html">
            
                    
                    php错误与异常
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.3.1" data-path="02_PhpStorm本地断点调试.html">
            
                <a href="02_PhpStorm本地断点调试.html">
            
                    
                    PhpStorm本地断点调试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="03_php文件操作.html">
            
                <a href="03_php文件操作.html">
            
                    
                    php文件操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="04_cookie机制.html">
            
                <a href="04_cookie机制.html">
            
                    
                    cookie机制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="05_session.html">
            
                <a href="05_session.html">
            
                    
                    session
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="06_php画图.html">
            
                <a href="06_php画图.html">
            
                    
                    php画图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="07_php加密机制.html">
            
                <a href="07_php加密机制.html">
            
                    
                    php加密机制
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >PhpStorm本地断点调试</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="phpstorm&#x672C;&#x5730;&#x65AD;&#x70B9;&#x8C03;&#x8BD5;">PhpStorm&#x672C;&#x5730;&#x65AD;&#x70B9;&#x8C03;&#x8BD5;</h1>
<p>php&#x4EE3;&#x7801;&#x5728;&#x8C03;&#x8BD5;&#x65F6;&#xFF0C;&#x7ECF;&#x5E38;&#x662F;print_r&#x6216;&#x8005;var_dump&#x6765;&#x65AD;&#x70B9;&#xFF0C;&#x4F46;&#x662F;&#x5F53;&#x9879;&#x76EE;&#x8F83;&#x4E3A;&#x590D;&#x6742;&#x7684;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;&#x8FD9;&#x4E48;&#x505A;&#x6548;&#x7387;&#x5C31;&#x975E;&#x5E38;&#x4F4E;&#x4E0B;&#x4E86;&#xFF0C;&#x65AD;&#x70B9;&#x8C03;&#x8BD5;&#x5C31;&#x975E;&#x5E38;&#x597D;&#x7684;&#x89E3;&#x51B3;&#x4E86;&#x8FD9;&#x4E2A;&#x95EE;&#x9898;&#x3002;&#x4E00;&#x5F00;&#x59CB;&#x53EF;&#x80FD;&#x4E0D;&#x592A;&#x9002;&#x5E94;&#x65AD;&#x70B9;&#x8C03;&#x8BD5;&#xFF0C;&#x4F46;&#x662F;&#x5F53;&#x4E60;&#x60EF;&#x4E4B;&#x540E;&#xFF0C;&#x8D8A;&#x7528;&#x8D8A;&#x8212;&#x670D;&#x3002;</p>
<p>&#x5728; PhpStorm &#x4E2D;&#xFF0C;&#x914D;&#x5408;&#x4F7F;&#x7528; Xdebug &#xFF0C;&#x53EF;&#x4EE5;&#x5F88;&#x65B9;&#x4FBF;&#x7684;&#x5B9E;&#x73B0;&#x65AD;&#x70B9;&#x8C03;&#x8BD5;</p>
<h3 id="&#x4E0B;&#x8F7D;-xdebug">&#x4E0B;&#x8F7D; Xdebug</h3>
<p>&#x4E0B;&#x8F7D;&#x5730;&#x5740;&#xFF1A;<a href="https://xdebug.org/download.php&#xFF0C;&#x9996;&#x5148;&#x786E;&#x5B9A;&#x4F60;&#x7684;" target="_blank">https://xdebug.org/download.php&#xFF0C;&#x9996;&#x5148;&#x786E;&#x5B9A;&#x4F60;&#x7684;</a> PHP &#x7248;&#x672C;&#xFF0C;&#x4F7F;&#x7528;phpinfo()&#x67E5;&#x770B; PHP &#x7248;&#x672C;&#x4FE1;&#x606F;&#xFF0C;&#x7136;&#x540E;&#x4E0B;&#x8F7D;&#x5BF9;&#x5E94;&#x7684; Xdebug &#x7248;&#x672C;</p>
<h3 id="&#x5F00;&#x542F;-xdebug-&#x914D;&#x7F6E;">&#x5F00;&#x542F; Xdebug &#x914D;&#x7F6E;</h3>
<p>&#x6253;&#x5F00; php.ini&#xFF0C;&#x627E;&#x5230; Xdebug &#x7684;&#x914D;&#x7F6E;&#xFF0C;&#x5982;&#x679C;&#x6CA1;&#x6709;&#xFF0C;&#x8BF7;&#x624B;&#x52A8;&#x6DFB;&#x52A0;&#x3002;</p>
<pre><code class="lang-php">[XDebug]
zend_extension=<span class="hljs-string">&quot;C:\xampp\php\ext\php_xdebug-2.3.3-5.5-vc11.dll&quot;</span>
xdebug.profiler_enable=<span class="hljs-number">1</span>
xdebug.profiler_output_dir=<span class="hljs-string">&quot;C:\xampp\tmp&quot;</span>
xdebug.remote_enable=<span class="hljs-number">1</span>
xdebug.remote_port=<span class="hljs-number">9000</span>
xdebug.remote_host=<span class="hljs-string">&quot;localhost&quot;</span>
</code></pre>
<h3 id="&#x68C0;&#x67E5;-xdebug&#x7684;&#x5B89;&#x88C5;&#x60C5;&#x51B5;">&#x68C0;&#x67E5; Xdebug&#x7684;&#x5B89;&#x88C5;&#x60C5;&#x51B5;</h3>
<p>&#x5728; PhpStorm &#x4E2D;&#xFF0C;File&gt;Setting &#x6253;&#x5F00;&#x7CFB;&#x7EDF;&#x8BBE;&#x7F6E;&#xFF0C;&#x7136;&#x540E;&#x5982;&#x4E0B;&#x56FE;&#x8FDB;&#x5165; PHP &#x7684;&#x7F16;&#x8BD1;&#x5668;&#x8BBE;&#x7F6E;&#xFF0C;&#x5982;&#x679C;&#x80FD;&#x770B;&#x5230; Xdebug &#x7684;&#x4FE1;&#x606F;&#xFF0C;&#x8BF4;&#x660E;&#x5B89;&#x88C5;&#x6210;&#x529F;&#xFF1A;</p>
<p><img src="http://end.hnz.kim/amWiki/images/xdebug/jiancha.png" alt="img"></p>
<p>&#x5728; PhpStorm &#x4E2D;&#xFF0C;&#x5F00;&#x542F;&#x76D1;&#x542C;
<img src="http://end.hnz.kim/amWiki/images/xdebug/xdebug2.png" alt="img"></p>
<p>&#x5728; PhpStorm &#x4E2D;&#xFF0C;&#x6DFB;&#x52A0;&#x65AD;&#x70B9;&#x3002;&#x5728;&#x6D4F;&#x89C8;&#x5668;&#x8BBF;&#x95EE;&#x9879;&#x76EE;&#x7F51;&#x5740;&#x8FDB;&#x5165;&#x8C03;&#x8BD5;&#x6A21;&#x5F0F;&#xFF1A;
<img src="http://end.hnz.kim/amWiki/images/xdebug/xdebug.png" alt="img"></p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="01_php错误与异常.html" class="navigation navigation-prev " aria-label="Previous page: php错误与异常">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="03_php文件操作.html" class="navigation navigation-next " aria-label="Next page: php文件操作">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"PhpStorm本地断点调试","level":"1.3.1","depth":2,"next":{"title":"php文件操作","level":"1.3.2","depth":2,"path":"php/php高级/03_php文件操作.md","ref":"./php/php高级/03_php文件操作.md","articles":[]},"previous":{"title":"php错误与异常","level":"1.3","depth":1,"path":"php/php高级/01_php错误与异常.md","ref":"./php/php高级/01_php错误与异常.md","articles":[{"title":"PhpStorm本地断点调试","level":"1.3.1","depth":2,"path":"php/php高级/02_PhpStorm本地断点调试.md","ref":"./php/php高级/02_PhpStorm本地断点调试.md","articles":[]},{"title":"php文件操作","level":"1.3.2","depth":2,"path":"php/php高级/03_php文件操作.md","ref":"./php/php高级/03_php文件操作.md","articles":[]},{"title":"cookie机制","level":"1.3.3","depth":2,"path":"php/php高级/04_cookie机制.md","ref":"./php/php高级/04_cookie机制.md","articles":[]},{"title":"session","level":"1.3.4","depth":2,"path":"php/php高级/05_session.md","ref":"./php/php高级/05_session.md","articles":[]},{"title":"php画图","level":"1.3.5","depth":2,"path":"php/php高级/06_php画图.md","ref":"./php/php高级/06_php画图.md","articles":[]},{"title":"php加密机制","level":"1.3.6","depth":2,"path":"php/php高级/07_php加密机制.md","ref":"./php/php高级/07_php加密机制.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"php/php高级/02_PhpStorm本地断点调试.md","mtime":"2020-04-23T10:28:19.070Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-04-23T11:06:38.883Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

